﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XNAProject.Enumerations;

namespace XNAProject.GameElements
{
    [Serializable()]
    public class SaveShip
    {
        public string name { get; set; }
        public int defense { get; set; }
        public int offense { get; set; }
        public int movement { get; set; }
        public int health { get; set; }
        public int cost { get; set; }
        public int consumption { get; set; }
        public int sight { get; set; }
        public bool selfRepaire { get; set; }
        public ShipType type { get; set; }
        public int i, j;

        public SaveShip(ShipType type, int i, int j)
        {
            this.i = i;
            this.j = j;

            if (type == ShipType.Cruiser)
            {
                name = "Cruiser";
                defense = 200;
                offense = 400;
                sight = 3;
                cost = 1000;
                health = 300;
                consumption = 20;
                movement = 3;
            }
            else if (type == ShipType.Cruiser)
            {
                name = "Frigat";
                defense = 400;
                offense = 200;
                sight = 4;
                cost = 2000;
                health = 400;
                consumption = 30;
                movement = 2;
            }
        }
    }
}
